package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_ProformaInvoiceItem", catalog="Id")
public class TcwProformaInvoiceItem extends BaseEntity<TcwProformaInvoiceItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ProformaInvoiceBid", nameJava="proformaInvoiceBid", typeDataBase="varchar")
	private String proformaInvoiceBid;
	@YsField(nameDataBase="Vname", nameJava="vname", typeDataBase="varchar")
	private String vname;
	@YsField(nameDataBase="Vamount", nameJava="vamount", typeDataBase="decimal")
	private BigDecimal vamount;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwProformaInvoiceItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getProformaInvoiceBid() {
		return proformaInvoiceBid;
	}
	public TcwProformaInvoiceItem setProformaInvoiceBid(String proformaInvoiceBid) {
		this.proformaInvoiceBid = proformaInvoiceBid;
		return this;
	}
	public String getVname() {
		return vname;
	}
	public TcwProformaInvoiceItem setVname(String vname) {
		this.vname = vname;
		return this;
	}
	public BigDecimal getVamount() {
		return vamount;
	}
	public TcwProformaInvoiceItem setVamount(BigDecimal vamount) {
		this.vamount = vamount;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwProformaInvoiceItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwProformaInvoiceItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwProformaInvoiceItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwProformaInvoiceItem tcwProformaInvoiceItem(
		String proformaInvoiceBid,
		String vname,
		BigDecimal vamount,
		Integer status
			) {
		TcwProformaInvoiceItem entity = new TcwProformaInvoiceItem();
		entity.setProformaInvoiceBid(proformaInvoiceBid);
		entity.setVname(vname);
		entity.setVamount(vamount);
		entity.setStatus(status);
		return entity;
	}
}